package ac.kr.incheon.android_gietae;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.widget.TextView;

public class FourViewDetailActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_four_view_detail);

		TextView nameTextView = (TextView) findViewById(R.id.four_view_detail_name);
		TextView phoneTextView = (TextView) findViewById(R.id.four_view_detail_phone);
		TextView commentTextView = (TextView) findViewById(R.id.four_view_detail_comment);

		String strName = this.getIntent().getStringExtra("name");
		String strPhone = this.getIntent().getStringExtra("phone");
		String strComment = this.getIntent().getStringExtra("comment");

		nameTextView.setText(strName);
		phoneTextView.setText(strPhone);
		commentTextView.setText(strComment);

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_four_view_detail, menu);
		return true;
	}

}
